﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MathsLibrary
{
    static class Figures
    {
        const double Pi = 3.14159265;
        public static double CircleLength(double diam)
        {
            return Pi * diam;
        }
        public static double CircleSquare(double diam)
        {
            return (Pi * diam * diam) / 4;
        }
        public static double SquareSq(double side)
        {
            return side * side;
        }
        public static double SquarePerim(double side)
        {
            return 4 * side;
        }
        public static double RectSquare(double side1, double side2)
        {
            return side1 * side2;
        }
        public static double RectPerim(double side1, double side2)
        {
            return 2 * side1 + 2 * side2;
        }
    }
}
